package fuckTest.testList;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class Demo1 {

    public static void main(String[] args) {
        List<String> strs = new ArrayList<>();
        strs.add("str");
        strs.add("strads");
        strs.add("stradscounj");

        String res = strs.stream().map(String::toString).collect(Collectors.joining(","));
        System.out.println(res);

    }

}
